These tests need to test GTK4 ui file syntax.
-<!-- default property gets stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <object class="GtkWindow">
- </object>
+ <object class="GtkWindow"/>
</interface>
-<!-- non-default property not stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="visible">1</property>
-<!-- translatable property not stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="visible" translatable="yes">0</property>
-<!-- irrelevant comments and context are stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
- <property name="visible">1</property>
+ <property name="visible" comments="foo" context="bla">1</property>
</object>
</interface>
-<!-- irrelevant comments and context are stripped -->
+<!-- comments and context are preserved -->
<interface>
<object class="GtkWindow">
<property name="visible" comments="foo" context="bla">True</property>
-<!-- placeholders are stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<child>
<object class="GtkBox">
+ <child>
+ <placeholder/>
+ </child>
</object>
</child>
</object>
-<!-- placeholders are stripped -->
+<!-- placeholders are preserved -->
<interface>
<object class="GtkWindow">
<child>
-<!-- non-canonical property name works -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
+ <property name="default_height">200</property>
</object>
</interface>
<interface>
<object class="GtkWindow">
<property name="default_width">-1</property>
+ <property name="default_height">200</property>
</object>
</interface>
-<!-- default child property gets stripped -->
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <object class="GtkBox">
+ <object class="GtkGrid">
<child>
- <object class="GtkLabel"/>
+ <object class="GtkLabel">
+ <layout>
+ <property name="row-span">2</property>
+ </layout>
+ </object>
</child>
</object>
</interface>
-<!-- default child property gets stripped -->
+<!-- default layout property gets stripped -->
<interface>
- <object class="GtkBox">
+ <object class="GtkGrid">
<child>
<object class="GtkLabel">
+ <layout>
+ <property name="column-span">1</property>
+ <property name="row-span">2</property>
+ </layout>
</object>
- <packing>
- <property name="expand">False</property>
- </packing>
</child>
</object>
</interface>
+++ /dev/null
-<!-- non-default child property remains -->
-<interface>
- <object class="GtkBox">
- <child>
- <object class="GtkLabel"/>
- <packing>
- <property name="expand">1</property>
- </packing>
- </child>
- </object>
-</interface>
+++ /dev/null
-<!-- non-default child property remains -->
-<interface>
- <object class="GtkBox">
- <child>
- <object class="GtkLabel">
- </object>
- <packing>
- <property name="expand">True</property>
- </packing>
- </child>
- </object>
-</interface>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <object class="GtkGrid">
- <child>
- <object class="GtkLabel">
- <layout>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
- </layout>
- </object>
- </child>
- </object>
-</interface>
+++ /dev/null
-<!-- non-default child property remains -->
-<interface>
- <object class="GtkGrid">
- <child>
- <object class="GtkLabel">
- <layout>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
- </layout>
- </object>
- </child>
- </object>
-</interface>